package test2

object Array3 {
  def main(args: Array[String]): Unit = {
    val a=Array(1,2,3)
    var b=a.map(_*2)
    println(b.mkString("-"))
    var c=for(elem<-a)yield  2*elem;
    println(c.getClass)
    c.foreach(println)
  }
}
